package cn.le.image;

import net.coobird.thumbnailator.Thumbnails;

import java.io.IOException;

/**
 * Created by admin on 2018/3/22.
 */
public class ImageHandle1 {

    public static void main(String[] args) throws IOException {


        Thumbnails.of("F:/image/21.jpeg")
                //.size(200,200)
                .scale(0.4f)
                //.keepAspectRatio(false)
                .outputQuality(0.9d)
                .toFile("F:/image/压缩21.jpeg");

    }

}
